package cn.tedu.annotation;

import com.sun.corba.se.impl.oa.toa.TransientObjectManager;

import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

public class Demo {
}

@Target({ElementType.FIELD,ElementType.METHOD,ElementType.TYPE})
@interface Cat{
    String name()default "";
    int age()default 0;
}
@Cat(name = "TOM")
class TestDemo{
    @Cat(age = 666)
    String host;
    @Cat(name = "JACK",age = 999)
    public void play(){}
}